#include <iostream>
#include <cstring>
using namespace std;

class Dog
{
private:
  char name[100];
  int age;
  double weight;
  char sex;

public:
  Dog()
  {
    strcpy(name, "XXX");
    age = 0;
    sex = 'm';
  };

  Dog(char *n, int a, char s, double w);
  void GetName() { cout << name << endl; }
  void GetAge() { cout << age << endl; }
  void GetSex() { cout << sex << endl; }
  void GetWeight() { cout << weight << endl; }
  void speak()
  {
    cout << "Arf!Arf!";
  }
};

Dog::Dog(char *n, int a, char s, double w)
{
  strcpy(name, n);
  age = a;
  sex = s;
  weight = w;
}

int main()
{
  Dog d;
  char name[100];
  int age;
  double weight;
  char sex;

  cin
}